﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GPS.ENTITYS
{
    public class CrudModelDKH_LOP_LH
    {
     
        [Display(Name = "KH_LOP_LH_MA")]
         public string KH_LOP_LH_MA { get; set; }

        [Required(ErrorMessage = "Đơn vị GTVT bắt buộc nhập")]
        [Display(Name = "Đơn vị GTVT")]
        public string KH_LOP_LH_DVGTVT_MA { get; set; }

        [Required(ErrorMessage = "Khóa học bắt buộc nhập")]
        [Display(Name = "Khóa học")]
        public string KH_LOP_LH_KH_MA { get; set; }

        [Required(ErrorMessage = "Lớp học bắt buộc nhập")]
        [Display(Name = "Lớp học")]
        public string KH_LOP_LH_KH_LOP_MA { get; set; }
        public string KH_LOP_LH_GV_MA { get; set; }
        public string KH_LOP_LH_HTDT_MA { get; set; }
        public string KH_LOP_LH_PT_BIENSO { get; set; }
        public Nullable<decimal> KH_LOP_LH_SOHOCVIEN { get; set; }
        public Nullable<decimal> KH_LOP_LH_THANG { get; set; }
        public Nullable<decimal> KH_LOP_LH_TUAN { get; set; }
        public Nullable<System.DateTime> KH_LOP_LH_TUNGAY { get; set; }
        public Nullable<System.DateTime> KH_LOP_LH_DENNGAY { get; set; }
        public string KH_LOP_LH_GDOAN_MA { get; set; }
        public string KH_LOP_LH_KIEMTRA { get; set; }
        public string KH_LOP_LH_MOTA { get; set; }
        public string KH_LOP_LH_ACTIVE { get; set; }
        public Nullable<System.DateTime> KH_LOP_LH_NGAYNHAP { get; set; }
        public string KH_LOP_LH_NGUOINHAP { get; set; }
        public Nullable<System.DateTime> KH_LOP_LH_NGAYSUA { get; set; }
        public string KH_LOP_LH_NGUOISUA { get; set; }

        //phuc vụ add hoc vien vao phuong tien
        public string[] SelectedHVs { get; set; }
        public List<SelectItemDHV> ListHVs { get; set; }

    }

    public class SelectItemDHV
    {

        public string HV_MA { get; set; }
        [Display(Name = "Họ và tên")]
        public string HV_HOTEN { get; set; }
    }

    public class Select2DHV
    {
        public string[] SelectedHVs { get; set; }
        public List<SelectItemDHV> ListHVs { get; set; }
    }
}
